<template>
    <div>
        <h1>我是页面1</h1>
        <input type="text" v-model="msg1"/>
    </div>
</template>
<script>
export default {
    data() {
        return {
            msg1:123
        }
    },
    beforeCreate() {
        console.log('我是组件的beforeCreate')
    },
    created(){
        console.log('我是组件的created')
    },
    beforeMount() {
        console.log('我是组件的beforeMount')
    },
    mounted(){
        console.log('我是组件的mounted')
    }
}
</script>